package com.lanju.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import com.dxl.common.json.JsonDateTimeSerializer;
import com.dxl.common.model.easyui.TreeNode;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class ProdCateTreeNode extends TreeNode {
	private String path;
	private String name;
	private String description;
	private Integer status;
	@JsonSerialize(using=JsonDateTimeSerializer.class)
	@DateTimeFormat(iso=ISO.DATE_TIME, pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
	@JsonSerialize(using=JsonDateTimeSerializer.class)
	@DateTimeFormat(iso=ISO.DATE_TIME, pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedTime;
	public ProdCateTreeNode() {}
	
	public ProdCateTreeNode(String id, String text) {
		this(id, text, null, false);
	}
	
	public ProdCateTreeNode(String id, String text, String state) {
		this(id, text, state, false);
	}
	
	public ProdCateTreeNode(String id, String text, String state, boolean checked) {
		super(id, text, state, checked);
	}
	
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}
}
